/******************************************************************
 *
 *    Java Lib For JavaWeb, Powered By Shenzhen WEI YI KE JI .
 *
 *    Copyright (c) 2017-2027 Digital Telemedia Co.,Ltd
 *    http://www.d-telemedia.com/
 *
 *    Package:     com.theyeasy.dvmini.service
 *
 *    Filename:    ProjectService.java
 *
 *    Description: TODO(鐢ㄤ竴鍙ヨ瘽鎻忚堪璇ユ枃浠跺仛浠�涔�)
 *
 *    Copyright:   Copyright (c) 2017-2027
 *
 *    Company:     Theyeasy Telemedia Co.,Ltd
 *
 *    @author:     hm
 *
 *    @version:    1.0.0
 *
 *    Create at:   2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 *
 *    Revision:
 *
 *    2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 *        - first revision
 *
 *****************************************************************/
package com.theyeasy.dvmini.service;

import java.math.BigDecimal;

import com.theyeasy.dvmini.model.Activity;
import com.theyeasy.dvmini.util.PageResults;
import com.theyeasy.dvmini.vo.Lotterylog_Vo;

/**
 * @ClassName ProjectService
 * @Description TODO(杩欓噷鐢ㄤ竴鍙ヨ瘽鎻忚堪杩欎釜绫荤殑浣滅敤)
 * @author hm
 * @Date 2017骞�10鏈�22鏃� 涓嬪崍5:53:11
 * @version 1.0.0
 */
public interface ActivityService {

	// 活动配置
	String editActivitySetting(String beginTime, BigDecimal planMny, Integer minMny, Integer maxMny,
			Integer lotteryPercent, String city, String keyword, String unLotteryReply, String finishReply,
			String lotteryTitle, String lotterySubTitle);

	// 获取活动配置
	Activity getActivitySetting();

	// 强制开启或结束活动
	String updateActivityStatus(Integer status);

	// 清空活动数据，开启下一轮
	String clearActivity();

	// 添加中奖记录
	String addLotteryLog(Integer fansid, BigDecimal mny, Integer status, Integer turn);

	// 中奖记录列表
	PageResults<Lotterylog_Vo> getLotteryLogList(Integer page, Integer pagesize, Integer turn, String keyword);

	void updateCurrentMny(BigDecimal currentMny);
}
